package com.charlotte.study.gupao.vistor.general;

/**
 * @author junjie.ding
 * @date 2020/3/25
 */
public class ConcreteVistorA implements IVistor {

    @Override
    public void visit(ConcreteElementA element) {
        System.out.println(element.operationA());
    }

    @Override
    public void visit(ConcreteElementB element) {
        System.out.println(element.operationB());
    }
}
